package com.sx.shop.mapper;

import com.sx.shop.entity.Shop;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ShopMapper {
    void insert(Shop shop);

    void update(Shop shop);

    void delete(Integer id);

    @Select("select * from shop where id=#{id}")
    Shop selectShopById(Integer id);

    List<Shop> selectShop(String keyword);

    List<Shop> selectShopByCreatebyid(int createby_id,String keyword);
}
